package com.heima.Controller;

import com.heima.Serivce.WemediaSensitiveSerivce;
import com.heima.model.Admin.Dtos.SensitiveDto;
import com.heima.model.common.dtos.ResponseResult;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.autoconfigure.ImportAutoConfiguration;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/wemedia/MEDIA/wemedia/api/v1/sensitive")
public class WemediaSensitiveController {
    @Autowired
    WemediaSensitiveSerivce wemediaSensitiveSerivce;
    @PostMapping("/list")
    public ResponseResult GetSensitiveList(@RequestBody SensitiveDto sensitiveDto)
    {
        return wemediaSensitiveSerivce.SensitiveLIst(sensitiveDto);
    }
}
